﻿@{
    if (!UrlData.Any()) {
        RequestData.SetValue("InfoPaneTitle", "잘못된 달력 ID");
        return;
    }

    int calendarId = UrlData[0].AsInt();

    var calObj = new {   
        CalendarId = calendarId,
        Name = Request["name"],
        Color = Request["color"],
    };

    @RenderPage(Themes.GetResourcePath("Partials", "CalendarForm.cshtml"), calObj);
}